package net.lainiao.morethread.Chapter4.demo6;

import java.util.Date;
import java.util.concurrent.Callable;

/**
 * Created by Administrator on 2017/3/3.
 */
public class Task implements Callable<String> {
    private String name;

    public Task(String name) {
        this.name = name;
    }

    @Override
    public String call() throws Exception {
        System.out.println(name+" Starting at :"+new Date());
        return "Hello World";
    }

}
